﻿using HAF.FtpUtility.Model;
using System;
using System.Collections.Generic;
using System.ComponentModel;

namespace FileTransfer
{
    /// <summary>
    /// 运行时参数集
    /// </summary>
    [DisplayName("运行集")]
    public class LoadContext
    {
        public static readonly string AppName = "MediaTransfer";
        public static readonly string AppCaption = "媒体资源下载器";
        public static readonly string AppVersion = "Ver2.2";
        /// <summary>
        /// 程序路径
        /// </summary>
        public static string AppPath { get; set; } = Environment.CurrentDirectory;

        /// <summary>
        /// 默认本地存储路径
        /// </summary>
        public static string DefaultSaveAddress { get; set; }

        /// <summary>
        /// 远程文件下载全路径
        /// </summary>
        public static string TempRemoteFileFullPath { get; set; }

        public static List<SiteTaskConfig> RunSites { get; set; } = new List<SiteTaskConfig>();
        /// <summary>
        /// 是否正在下载 避免站点和单个下载同时进行
        /// </summary>
        public static bool IsDown { get; set; } = false;
    }
}
